home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / WDECL.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-25  |  2.0 KB  |  89 lines

  1.  
  2. #ifndef _WDECL_HPP_INCLUDED
  3. #define _WDECL_HPP_INCLUDED
  4. #pragma once
  5.  
  6. #ifndef _WNO_PRAGMA_PUSH
  7. #pragma pack(push,8);
  8. #pragma enum int;
  9. #endif
  10.  
  11. #if defined( _WIN32 ) && !defined( WIN32 )
  12. #define WIN32
  13. #endif
  14.  
  15. #if defined( WIN32 ) && !defined( _WIN32 )
  16. #define _WIN32
  17. #endif
  18.  
  19. #ifndef _STDDEF_H_INCLUDED
  20. #  include <stddef.h>
  21. #endif
  22.  
  23. #define WDLLIMPORT __declspec(dllimport) __declspec(__stdcall)
  24. #define WDLLEXPORT __declspec(dllexport) __declspec(__stdcall)
  25.  
  26. #pragma aux (__stdcall) __undecorated "*"
  27. #define WDLLIMPORT2 __declspec(__pragma("__undecorated"))
  28. #define WDLLIMPORT3 __declspec(dllimport) __declspec(__pragma("__undecorated"))
  29.  
  30. //
  31. // Model/linking information
  32. //
  33.  
  34. #define WCMDEF                   __stdcall
  35. #pragma aux (WCMDEF) WCMRETURNFLOAT value struct float;
  36. #define WCMRETURNSFLOAT __pragma("WCMRETURNFLOAT")
  37.  
  38. #define WCMDECLSPEC_IMPORT       //__declspec(dllimport)
  39. #define WCMDECLSPEC_EXPORT       __declspec(dllexport)
  40.  
  41. #ifdef __BUILDING_WCM_DLL__
  42. #define WCMDECLSPEC              WCMDECLSPEC_EXPORT
  43. #else
  44. #define WCMDECLSPEC              WCMDECLSPEC_IMPORT
  45. #endif
  46.  
  47. #define WCMCLASS                 WCMDECLSPEC WCMDEF
  48.  
  49. #define _WEXPORT
  50. #define WFAR
  51.  
  52. #define WCLASSDEF WCMDECLSPEC WCMDEF
  53.  
  54. #ifdef __BUILDING_WCM_DLL__
  55. #define WEXPORT __export __stdcall
  56. #else
  57. #define WEXPORT __stdcall
  58. #endif
  59.  
  60. typedef short           WShort;
  61. typedef unsigned short  WUShort;
  62. typedef int             WInt;
  63. typedef unsigned int    WUInt;
  64. typedef long            WLong;
  65. typedef unsigned long   WULong;
  66. typedef unsigned long   WDWord;
  67. typedef bool            WBool;
  68. typedef unsigned char   WByte;
  69. typedef char            WChar;
  70. typedef unsigned char   WUChar;
  71. typedef double          WDouble;
  72. typedef float           WFloat;
  73.  
  74. #if defined( TRUE )
  75. #undef TRUE
  76. #endif
  77. #if defined( FALSE )
  78. #undef FALSE
  79. #endif
  80. #define TRUE  (true)
  81. #define FALSE (false)
  82.  
  83. #ifndef _WNO_PRAGMA_PUSH
  84. #pragma enum pop;
  85. #pragma pack(pop);
  86. #endif
  87.  
  88. #endif // _WDECL_HPP_INCLUDED
  89.